#!/usr/bin/env node

const mysql = require('mysql2/promise');

class ResData{
  constructor(){
    this.code=0;
    this.msg='';
    this.count=0;
    this.data='';                
  }

};

let con = '';
(async()=>{
  con =mysql.createPool({
    host:'localhost',
    user:'root',
    password:'ddd',
    database:'demo'
  })
})()

module.exports = {
  con,
  ResData,
}

